package com.bonc.sdk.gofakeit.v1.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

/**
 * @projectName bonc-sx-sdk-client
 * @Author huzhengyang
 * @Create 2023/12/6 15:44
 */
public class ShowCarRequest {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "carId")

    private String carId;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "ief-instance-id")

    private String goFakeItInstanceId;

    public ShowCarRequest withCarId(String carId) {
        this.carId = carId;
        return this;
    }

    /**
     * 加密数据ID
     * @return carId
     */
    public String getCarId() {
        return carId;
    }

    public void setCarId(String carId) {
        this.carId = carId;
    }

    public ShowCarRequest withGoFakeItInstanceId(String goFakeItInstanceId) {
        this.goFakeItInstanceId = goFakeItInstanceId;
        return this;
    }

    /**
     * 铂金版实例ID，专业版实例为空值
     * @return iefInstanceId
     */
    public String getGoFakeItInstanceId() {
        return goFakeItInstanceId;
    }

    public void setGoFakeItInstanceId(String goFakeItInstanceId) {
        this.goFakeItInstanceId = goFakeItInstanceId;
    }

    @Override
    public boolean equals(java.lang.Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        ShowCarRequest that = (ShowCarRequest) obj;
        return Objects.equals(this.carId, that.carId)
                && Objects.equals(this.goFakeItInstanceId, that.goFakeItInstanceId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(carId, goFakeItInstanceId);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class ShowCarRequest {\n");
        sb.append("    carId: ").append(toIndentedString(carId)).append("\n");
        sb.append("    goFakeItInstanceId: ").append(toIndentedString(goFakeItInstanceId)).append("\n");
        sb.append("}");
        return sb.toString();
    }

    /**
     * Convert the given object to string with each line indented by 4 spaces
     * (except the first line).
     */
    private String toIndentedString(java.lang.Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }

}
